home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form FrmLEDSample2
- Appearance = 0 'Flat
- BorderStyle = 1 'Fixed Single
- Caption = "LED - Width Sample"
- ClientHeight = 3075
- ClientLeft = 1530
- ClientTop = 2265
- ClientWidth = 4680
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 3480
- Left = 1470
- LinkTopic = "Form1"
- ScaleHeight = 3075
- ScaleWidth = 4680
- Top = 1920
- Width = 4800
- Begin VB.HScrollBar HScroll3
- Height = 255
- Left = 1680
- TabIndex = 2
- Top = 2520
- Width = 1575
- End
- Begin VB.HScrollBar HScroll2
- Height = 255
- Left = 1680
- TabIndex = 1
- Top = 2160
- Width = 1575
- End
- Begin VB.HScrollBar HScroll1
- Height = 255
- Left = 1680
- TabIndex = 0
- Top = 1800
- Width = 1575
- End
- Begin LedLib.LED LED1
- Height = 1335
- Left = 240
- TabIndex = 10
- Top = 240
- Width = 1335
- _Version = 131072
- _ExtentX = 2355
- _ExtentY = 2355
- _StockProps = 64
- BevelInner = 3
- BevelShapeInner = 1
- BevelOuter = 1
- BevelShapeOuter = 0
- BevelWidthOuter = 1
- BevelWidthInner = 1
- BorderWidth = 4
- DisabledColor = 12632256
- OffColor = 8421504
- OnColor = 255
- Value = -1 'True
- End
- Begin VB.Label Label7
- Appearance = 0 'Flat
- Caption = "This sample shows the effect of changing the various bevel and border widths. Play with the scroll bars to see the changes."
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1335
- Left = 1800
- TabIndex = 9
- Top = 240
- Width = 2655
- End
- Begin VB.Label Label6
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "BorderWidth:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 240
- TabIndex = 8
- Top = 2520
- Width = 1335
- End
- Begin VB.Label Label5
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "BevelWidthInner:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 240
- TabIndex = 7
- Top = 2160
- Width = 1335
- End
- Begin VB.Label Label4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "BevelWidthOuter:"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 240
- TabIndex = 6
- Top = 1800
- Width = 1335
- End
- Begin VB.Label Label3
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Label3"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 3360
- TabIndex = 5
- Top = 2520
- Width = 1095
- End
- Begin VB.Label Label2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Label2"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 3360
- TabIndex = 4
- Top = 2160
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Label1"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Left = 3360
- TabIndex = 3
- Top = 1800
- Width = 975
- End
- Attribute VB_Name = "FrmLEDSample2"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- HScroll1.Value = LED1.BevelWidthOuter
- HScroll1.Min = 0
- HScroll1.Max = 10
- HScroll2.Value = LED1.BevelWidthInner
- HScroll2.Min = 0
- HScroll2.Max = 10
- HScroll3.Value = LED1.BorderWidth
- HScroll3.Min = 0
- HScroll3.Max = 10
- Call HScroll1_Change
- Call HScroll2_Change
- Call HScroll3_Change
- End Sub
- Private Sub HScroll1_Change()
- LED1.BevelWidthOuter = HScroll1.Value
- Label1.Caption = HScroll1.Value & " Pixel(s)"
- End Sub
- Private Sub HScroll1_Scroll()
- Call HScroll1_Change
- End Sub
- Private Sub HScroll2_Change()
- LED1.BevelWidthInner = HScroll2.Value
- Label2.Caption = HScroll2.Value & " Pixel(s)"
- End Sub
- Private Sub HScroll2_Scroll()
- Call HScroll2_Change
- End Sub
- Private Sub HScroll3_Change()
- LED1.BorderWidth = HScroll3.Value
- Label3.Caption = HScroll3.Value & " Pixel(s)"
- End Sub
- Private Sub HScroll3_Scroll()
- Call HScroll3_Change
- End Sub
-